{extend name="index_layout"/}
{block name="main"}
<div class="layui-card">
    <div class="layui-card-header">添加党员</div>
    <div class="layui-card-body">
        <form class="layui-form form-horizontal" action="{:url('admin/partMember/add')}" method="post">
            <input type="hidden" name="id" value="{$data.id}" />
            <div class="layui-form-item">
                <label class="layui-form-label">真实姓名</label>
                <div class="layui-input-inline">
                    <input type="text" name="real_name" value="{$data.real_name}" autocomplete="off" placeholder="真实姓名" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">身份证号码</label>
                <div class="layui-input-inline">
                    <input type="text" name="card_id" value="{$data.card_id}" autocomplete="off" placeholder="身份证号码" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">所在支部</label>
                <div class="layui-input-inline">
                    <input type="text" name="zhibu" value="{$data.zhibu}" autocomplete="off" placeholder="所在支部" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-inline">
                    <select name="sex" lay-filter="sex">
                        <option value="1" {if $data.sex==1}selected{/if}>男</option>
                        <option value="2" {if $data.sex==2}selected{/if}>女</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">民族</label>
                <div class="layui-input-inline">
                    <input type="text" name="nation" value="{$data.nation}" autocomplete="off" placeholder="民族" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">出生日期</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" value="{$data.bron_date}" id="bron_date" name="bron_date">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">学历</label>
                <div class="layui-input-inline">
                    <input type="text" name="educational" value="{$data.educational}" autocomplete="off" placeholder="学历" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">人员类别</label>
                <div class="layui-input-inline">
                    <input type="text" name="person_type" value="{$data.person_type}" autocomplete="off" placeholder="人员类别" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">入党时间</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" value="{$data.rudang_date}" id="rudang_date" name="rudang_date">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">转正党员时间</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" value="{$data.zhuanzheng_date}" id="zhuanzheng_date" name="zhuanzheng_date">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">工作岗位</label>
                <div class="layui-input-inline">
                    <input type="text" name="work_place" value="{$data.work_place}" autocomplete="off" placeholder="工作岗位" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">手机号</label>
                <div class="layui-input-inline">
                    <input type="text" name="mobile" value="{$data.mobile}" autocomplete="off" placeholder="手机号" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">固定电话</label>
                <div class="layui-input-inline">
                    <input type="text" name="phone" value="{$data.phone}" autocomplete="off" placeholder="固定电话" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">家庭住址</label>
                <div class="layui-input-inline">
                    <input type="text" name="address" value="{$data.address}" autocomplete="off" placeholder="固定电话" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-inline">
                    <select name="status">
                        <option value="1" {if $data.status==1}selected{/if}>正常</option>
                        <option value="-1" {if $data.status==-1}selected{/if}>冻结</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn ajax-post" lay-submit="" lay-filter="*" target-form="form-horizontal">立即提交</button>
                </div>
            </div>
        </form>
        <div class="layui-form-item" style="margin-left: 100px;margin-top: -52px;">
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-normal" onClick="javascript :history.back(-1);">返回</button>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__STATIC__/admin/js/common.js"></script>
<script type="text/javascript">
    layui.use(['laydate','form'], function() {
        var $ = layui.$
            , laydate = layui.laydate;

        //日期时间范围
        laydate.render({
            elem: '#bron_date'
            , type: 'date'
        });

        //日期时间范围
        laydate.render({
            elem: '#rudang_date'
            , type: 'date'
        });

        //日期时间范围
        laydate.render({
            elem: '#zhuanzheng_date'
            , type: 'date'
        });
    });
</script>
{/block}